{% load i18n %}
<div class="pagination">
    <span class="step-links">
        {% if page.has_previous %}
            <a href="?page={{ page.previous_page_number }}">&laquo; {{_("previous")}}</a>
        {% endif %}

        <span class="current">
            {% blocktrans with page.number as cur and page.paginator.num_pages as total%}Page {{ cur }} of {{ total }}.{% endblocktrans %}
        </span>

        {% if page.has_next %}
            <a href="?page={{ page.next_page_number }}">{{_("next")}} &raquo;</a>
        {% endif %}
    </span>
</div>